#-*- coding: utf-8 -*-
import pickle
class teste:
	def __init__(self,x):
		self.x=x
obj= teste(49)
f=open("teste.dat","w")
p=pickle.dump(obj,f)
f.close()
del obj
obj= pickle.load(open("teste.dat","r"))
print obj.x
